<template>
  <div class="mush-content">
    <div class="post-top">
      <div class="post" v-for="(item,index) in noticeList1" :key="item.id">
        <div class="post-top1">
          <img src="../../assets/index/cover.png" alt="">
          <div class="ing" v-if="item.status==1">进行中</div>
          <div class="ing1" v-if="item.status==2">已结束</div>
          <div class="post-pay">
            <div class="title">
              {{ item.title }}
            </div>
            <div class="small-title">
              <div class="firm">{{ item.firm }}</div>
              <div class="post1">{{ item.post1 }}</div>
            </div>
          </div>
        </div>
        <!--        <div class="site">{{ item.site }}</div>-->
        <div class="striping"></div>
        <div class="recruiter">
          <div class="time">{{ item.time }}</div>
          <div class="message" @click="skip()">进入会场</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Mush",
  data(){
    return{
      noticeList1:[
        {
          id:1,
          ing: '进行中',
          title: '2022年“百⽇攻坚专项⾏动— 助企纾困”专场⽹络招聘会',
          firm: '企业4家',
          post1: '职位21个',
          time: '12-09 08:30 ⾄ 12-11 18:00',
          status: 2
        },
        {
          id:2,
          ing: '进行中',
          title: '2022年“百⽇攻坚专项⾏动— 助企纾困”专场⽹络招聘会',
          firm: '企业4家',
          post1: '职位21个',
          time: '12-09 08:30 ⾄ 12-11 18:00',
          status: 1
        },
        {
          id:3,
          ing: '进行中',
          title: '2022年“百⽇攻坚专项⾏动— 助企纾困”专场⽹络招聘会',
          firm: '企业4家',
          post1: '职位21个',
          time: '12-09 08:30 ⾄ 12-11 18:00',
          status: 1
        },
        // {
        //   id:4,
        //   ing: '进行中',
        //   title: '2022年“百⽇攻坚专项⾏动— 助企纾困”专场⽹络招聘会',
        //   firm: '企业4家',
        //   post1: '职位21个',
        //   time: '12-09 08:30 ⾄ 12-11 18:00',
        // },
        // {
        //   id:5,
        //   ing: '进行中',
        //   title: '2022年“百⽇攻坚专项⾏动— 助企纾困”专场⽹络招聘会',
        //   firm: '企业4家',
        //   post1: '职位21个',
        //   time: '12-09 08:30 ⾄ 12-11 18:00',
        // },
        // {
        //   id:6,
        //   ing: '进行中',
        //   title: '2022年“百⽇攻坚专项⾏动— 助企纾困”专场⽹络招聘会',
        //   firm: '企业4家',
        //   post1: '职位21个',
        //   time: '12-09 08:30 ⾄ 12-11 18:00',
        // },
      ]
    }
  },
  methods:{
    skip(){
      this.$router.push({ name: 'Activity' })
    }
  }
}
</script>

<style lang="scss" scoped>
.post-top{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  .post{
    padding: 20px 18px;
    background-color: #fff;
    border-radius: 15px;
    margin-top: 15px;
    width: 455px;
    height: 205px;
    .post-top1{
      position: relative;
      box-sizing: border-box;
      display: flex;
      .ing{
        position: absolute;
        top: 10px;
        left: 10px;
        border-radius: 10px;
        background-color: #498CF3;
        width: 50px;
        height: 20px;
        font-size: 10px;
        text-align: center;
        line-height: 20px;
        color: #fff;
      }
      .ing1{
        position: absolute;
        top: 10px;
        left: 10px;
        border-radius: 10px;
        background-color: #989898;
        width: 50px;
        height: 20px;
        font-size: 10px;
        text-align: center;
        line-height: 20px;
        color: #fff;
      }
      img{
        width: 120px;
        height: 120px;
      }
      .post-pay{
        margin-left: 15px;
        font-size: 26px;
        color: #5493F3;
        .title{
          line-height: 30px;
          font-size: 20px;
          color: #3F3F3F;
        }
        .small-title{
          display: flex;
          line-height: 60px;
          font-size: 20px;
          color: #919191;
          .firm{
            margin-right: 30px;
          }
        }
      }
    }
    .striping{
      margin-top: 20px;

      width: 100%;
      height: 2px;
      background-color: #D8D8D8;
    }
    .recruiter{
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 20px;
      font-size: 20px;
      .time{

      }
      .message{
        width: 100px;
        height: 40px;
        //background-color: #fff;
        border: 1px solid #649DF4;
        color: #649DF4;
        border-radius: 20px;
        text-align: center;
        line-height: 40px;
      }
    }
  }
}
</style>
